package metrica;

/**
 *
 * @author e235166
 */
public final class DistanciaManhattan extends DistanciaVectorial {
    @Override
    protected double distanciaVectorial(Double[] a, Double[] b)
    {
        double total = 0.0;
        
        for(int i = 0; i < a.length; i++)
        {
            total += (a[i]-b[i]);
        }
        
        return total;
    }
}
